package com.yiyuplatform.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.*;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @Description
 * @Author dalong
 * @Date 2021-11-08
 */

@Getter
@Setter
@ToString
@NoArgsConstructor
@EqualsAndHashCode
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"}, ignoreUnknown = true)
@Entity
@Table(name = "session_t_key")
public class SessionTKey implements Serializable {
    private static final long serialVersionUID = 9018944582599252852L;

    /**
     * 外键，该会话属于的用户id
     */
    @Column(name = "SE_UID")
    private String seUid;

    /**
     * 会话key
     */
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Column(name = "SE_SEESION_KEY")
    private String seSeesionKey;

}
